{extend name="layout" /}
{block name="my_body"}
<div class="widgetbox box-inverse">
    <div class="widgetcontent wc1">
        <form id="form1" class="stdform" enctype="multipart/form-data" method="post" action="<?php echo url('base/Index/editProfile');?>">


            <div class="par control-group">
                <label class="control-label" for="admin_name">管理员名称</label>
                <div class="controls"><input type="text" name="admin_name" id="admin_name" class="input-xlarge" value="<?php echo $data['admin_name'];?>" /></div>
            </div>

            <div class="control-group">
                <label class="control-label" for="email">管理员邮箱</label>
                <div class="controls"><input type="email" name="email" id="email" class="input-xlarge" value="<?php echo $data['email'];?>" /></div>
            </div>

            <div class="control-group par">
                <label class="control-label" for="ico">头像</label>
                <div class="controls"><input type="file" name="ico" id="ico" class="input-xlarge"  /></div>
            </div>
            <?php if(!empty($data['ico'])):?>
            <div class="control-group par">
                <label class="control-label" for="ico"></label>
                <div class="controls"><?php showImage($data['ico'],'80','80');?></div>
            </div>
            <?php endif;?>

            <p class="stdformbutton">
                <input type="submit" class="btn btn-primary" />
            </p>
        </form>
    </div><!--widgetcontent-->
</div><!--widget-->


{/block}
